<?php
/**
 *
 * Created by PhpStorm.
 * User: joc
 * Date: 2018/4/25
 * Time: 11:14
 */

namespace LDL\Twspider;


/*
 *
 */
class TwPool extends \Pool {
    protected function worker_list(){
        if ($this->workers !== null)
            return array_keys($this->workers);
        return null;
    }
    public function workersNum(){
        return count($this->worker_list());
    }
    public function dump(){
       // var_dump("总任务:".count($this->work));
        //var_dump("workers size:".count($this->size));
        var_dump("workers:".count($this->workers));
        var_dump($this->worker_list());
    }
}